package com.tmsps.common.exception;


import com.tmsps.common.util.result.ResponseCodeEnum;

/**
 * @author jiangtao
 * MicroService
 */
public class AppException extends RuntimeException {

    /**
     * 对应错误文件中的code
     */
    protected String code;
    /**
     * 通用错误码
     */
    protected ResponseCodeEnum repEnum;


    public AppException(String code) {
        this.code = code;
    }

    public AppException(ResponseCodeEnum repEnum){
        this.repEnum = repEnum;
    }
    public String getAppResponseCode(){
        return code;
    }

    public ResponseCodeEnum getRepEnum(){
        return this.repEnum;
    }


}
